<%@page import="com.kaishengit.entity.User"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="UTF-8">
<title>公司项目管理系统</title>
<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
</head>
<body class="body">

	<div class="navbar navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container">
				<a class="brand" href="#">公司项目管理系统</a>
			</div>
		</div>
	</div>


	<div class="container">
		<div class="row">
			<div class="span9">
				<form class="form-horizontal" action="new_project.jspx" method="post" name="myform">
					<fieldset>
						<legend>开始一个新项目</legend>
						<div class="control-group">
							<label class="control-label" for="input01" >项目名称</label>
							<div class="controls">
								<input class="span5" id="input01" x-webkit-speech="undefined"
									type="text" name="projectname">
								<p class="help-block">In addition to freeform text, any
									HTML5 text-based input appears like so.</p>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="input01">项目描述</label>
							<div class="controls" >
								<textarea class="span5" rows="4" name="description"></textarea>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="multiSelect">负责人</label>
							<div class="controls">
								<select id="multiSelect" name="manager">
									<option selected="selected"></option>
									<%
										request.setCharacterEncoding("UTF-8");
										List<User> ulist = new ArrayList<User>();
										ulist = (List<User>) request.getAttribute("userlist");
										for (User u : ulist) {
									%>
									<option value="<%=u.getUsername()%>"><%=u.getUsername()%></option>
									<%
										}
									%>
								</select>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="input01">项目成员</label>
							<div class="controls">
								<input class="span5" id="input01" x-webkit-speech="undefined"
									type="text" name="project_member">
							</div>
						</div>

						<div class="form-actions">
							<button type="submit" class="btn btn-primary">保存</button>
							<button class="btn" onclick="location.back()">返回</button>
						</div>
					</fieldset>
				</form>

			</div>
			<div class="span3"></div>
		</div>
	</div>

</body>
</html>